package com.yizhuoyan.his.service.pharmacyoperator;

import com.yizhuoyan.his.ao.CaseRegistrationRecordAo;
import com.yizhuoyan.his.entity.CaseRegistrationRecordEntity;
import com.yizhuoyan.his.entity.DocPrescriptionDetailEntity;
import com.yizhuoyan.his.entity.DocPrescriptionEntity;
import com.yizhuoyan.his.qco.CaseRegistrationRecordQco;
import org.springframework.lang.NonNull;

import java.util.List;

public interface DrugSendBackService {
    /**
     *
     * @param qco
     * @return 多个患者基本信息
     * @throws Exception
     */
    List<CaseRegistrationRecordEntity> queryCaseRegistrationRecord(@NonNull CaseRegistrationRecordQco qco) throws Exception;

    /**
     * 给我一个患者id
     * @param id
     * @return 返回可退药的列表
     * @throws Exception
     */
    List<DocPrescriptionDetailEntity>  queryDocPrescriptionDetail(Long id) throws Exception;

    /**
     * 给我一个药品id ,数量  我帮你去修改退药的数量
     * @param id
     * @param count
     * @throws Exception
     */
    void modifySendBackDrugCount(Long id ,int count)throws Exception;

    /**
     * 你给我一个患者id
     * @param id
     * @return  返回一个患者退药的金钱
     * @throws Exception
     */
    double queryMoney(Long id ) throws Exception;

    /**
     * 给我一个患者id  我帮你查询开药医生
     * @param  id
     * @return
     * @throws Exception
     */
    List<DocPrescriptionEntity> queryPrescribeDoctor(Long id) throws Exception;
}
